package com.homework.note.Repository;

import com.homework.note.Model.Enum.StatusType;
import com.homework.note.Model.Notebook;
import org.springframework.data.mongodb.repository.MongoRepository;

import java.util.List;


/**
 * @author htyu
 * @date 2019/3/10
 */

public interface NotebookRepository extends MongoRepository<Notebook, String> {

    List<Notebook> findAllByUserIDAndFatherIDAndStatus(String userID, String fatherID,StatusType statusType);


}
